package com.flower.subject.domain.service;

import com.flower.subject.domain.entity.SubjectLabelBO;
import com.flower.subject.domain.entity.SubjectLikedBO;
import com.flower.subject.infra.basic.entity.SubjectLiked;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (SubjectLiked)表服务接口
 *
 * @author makejava
 * @since 2024-07-28 22:04:12
 */
public interface SubjectLikedDomainService {


    Boolean add(SubjectLikedBO subjectLikedBO);

    /**
     * 获取当前是否被点赞过
     * @param subjectLikedBO
     * @return
     */
    Boolean isLiked(String subjectId,String userId);

    /**
     * 获取总数
     * @param subjectId
     * @param userId
     * @return
     */
    Integer getCount(String subjectId);

    /**
     * 同步点赞信息
     */
    void syncLiked();
}
